//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.core
{
	import mx.core.UIComponent;
	
	public class UserConfirmCommandConfig
	{
		public var message:String;
		public var title:String;
		public var parent:UIComponent;
		public var yesLabel:String;
		public var cancelLabel:String;
		public var maxWidth:Number;
		public var maxHeight:Number;
		public var callback:Function;
		
		private var resource:XML = ReaderResource.instance.resource;
		
		public function UserConfirmCommandConfig(title:String, message:String, parent:UIComponent, callback:Function)
		{
			this.message = message;
			this.title = title;
			this.parent = parent;
			this.callback = callback;
			
			this.yesLabel = resource.ganeralOK;
			this.cancelLabel = resource.ganeralCancel;
			this.maxWidth = 640;
			this.maxHeight = 480;
		}

	}
}